package cn.com.inossem.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * @Description: toast工具类
 * @author: Pengfei.Li
 * @date: 2017-8-7 上午 11:46
 * Copyright (c) 2015, Samton. All rights reserved
 */

public class ToastUtil {
	private static Toast mToast;

	public static void show(Context context, String message) {
		if (mToast == null) {
			mToast = Toast.makeText(context, message, Toast.LENGTH_SHORT);
		} else {
			mToast.setText(message);
		}
		mToast.show();
	}
}
